# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-sniffio
pkgver=1.3.0
pkgrel=2
pkgdesc="Sniff out which async library your code is running under"
url="https://github.com/python-trio/sniffio"
arch="noarch"
license="MIT OR Apache-2.0"
depends="python3 py3-curio"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/s/sniffio/sniffio-$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/sniffio-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
88228ec336f331ac32d3bbc1caf57cce417333cb697b44c7028da25380a36e118851d35214b4cddc9e8ab3c737d8c02e15de1374152c0850b344f64493616941  sniffio-1.3.0.tar.gz
"
